

init:
	go install github.com/google/wire/cmd/wire@latest
	go install github.com/swaggo/swag/cmd/swag@latest
wire:
	cd app/ && wire

swag:
	cd app/ && swag  init

#build:
#	export GOARCH=amd64     # 设置目标架构为x86
#  export GOOS=linux       # 设置目标操作系统为Linux
#  export CGO_ENABLED=1    # 启用CGO编译支持
#  go build -o  myprogram


build:
	cd app/ && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o application && mv application ../  && cd .. && sshpass -p 'Jackdking@1234' scp application root@llm.bittechblog.com:/home/jackdking/jdkgoweb/jackdking-go
